package lambdasinaction.chap9.my;

import java.util.List;

/**
 * TODO
 *
 * @author Fish
 * @since 0.0.1 2018/8/10 15:25
 */
public class MyUtils {

  public static void paint(List<MyResizable> list) {
    list.forEach(r -> {
      r.setAbsoluteSize(42, 42); // 调用每个形状自己的 setAbsoluteSize方法
      r.draw();
    });
  }

}
